package com.jnu.hc.jnuhcusercms.controller;

import com.jnu.hc.jnuhcusercms.domain.Users;
import com.jnu.hc.jnuhcusercms.dto.ResponseObject;
import com.jnu.hc.jnuhcusercms.service.ForgetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ForgetController {
    @Autowired
    ForgetService forgetService;

    @RequestMapping("/rePassword")
    public ResponseObject Repassword(@RequestBody Users users){
        ResponseObject responseObject = forgetService.Repassword(users);
        return responseObject;
    }
}
